package com.itgungnir.designpattern.command;

import java.util.ArrayList;
import java.util.List;

public class Test {
	public static void main(String[] args) {
		List<Command> commands = new ArrayList<>();
		commands.add(new ButtonCommand());
		commands.add(new ImageCommand());
		commands.add(new HttpCommand());

		for (Command c : commands) {
			c.execute();
		}
	}
}